<?php

namespace app\mall\ui\table;

use app\mall\enum\YesNoEnum;
use suframe\thinkAdmin\ui\table\TableInterface;

/**
 * 快递公司表表格
 */
class MallLogisticsCompanyTable extends TableInterface
{
    public function header()
    {
        return [
            'id'=> ['label' => 'ID', 'sort' => true, 'fixed' => 'left', 'width' => 80],
            'name'=> ['label' => '快递公司名'],
            'type'=> ['label' => '快递公司编号'],
            'inx'=> ['label' => '排序', 'sort' => true],
            'enable_text'=> ['label' => '是否启用', 'filter' => YesNoEnum::toZhArray(), 'field' => 'enable', 'width' => 90],
        ];
    }

    public function filters()
    {
        return [
            'name' => ['label' => '公司名', 'type' => 'text'],
        ];
    }
}